package itsm.isperp.module.repository.app;

import itsm.isperp.framework.data.domain.DataRequest;
import itsm.isperp.framework.data.domain.DataResponse;
import itsm.isperp.module.dto.app.VUserAccount;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 
 * 系统用户角色映射器
 * 
 * @author lizx
 * @date 2013-1-12
 * @date 2013-8-20 增加findRoleMembersMap及findRoleMembers方法
 * @version V1.0
 * 
 */
@Repository
public interface VUserAccountMapper {

	public VUserAccount findOne(@Param("id") String id,
			@Param("selectColumns") String... selectColumns);

	public VUserAccount findByUsername(@Param("username") String username,
			@Param("selectColumns") String... selectColumns);

	public DataResponse<VUserAccount> findAllByRequest(DataRequest req);

	public List<VUserAccount> findAll();

	public List<VUserAccount> findByPostion(@Param("postion") String postion);

}
